package com.fancy.learncenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by shiweiwei on 2017/12/28.
 */

public class CartoonAnswerKeysBean implements Parcelable {

    private List<CartoonTextsBean> texts;

    protected CartoonAnswerKeysBean(Parcel in) {
        texts = in.createTypedArrayList(CartoonTextsBean.CREATOR);
    }

    public static final Creator<CartoonAnswerKeysBean> CREATOR = new Creator<CartoonAnswerKeysBean>() {
        @Override
        public CartoonAnswerKeysBean createFromParcel(Parcel in) {
            return new CartoonAnswerKeysBean(in);
        }

        @Override
        public CartoonAnswerKeysBean[] newArray(int size) {
            return new CartoonAnswerKeysBean[size];
        }
    };

    public List<CartoonTextsBean> getTexts() {
        return texts;
    }

    public void setTexts(List<CartoonTextsBean> texts) {
        this.texts = texts;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(texts);
    }
}
